CLASS ymoon_cl_appjob_sample DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

  PUBLIC SECTION.
    INTERFACES if_apj_dt_exec_object .
    INTERFACES if_apj_rt_exec_object .
  PROTECTED SECTION.
  PRIVATE SECTION.
ENDCLASS.



CLASS YMOON_CL_APPJOB_SAMPLE IMPLEMENTATION.


  METHOD if_apj_rt_exec_object~execute.
    " Custom logic
    DATA:lv_aufnr TYPE c LENGTH 12.
    DATA:ls_tb TYPE ymoon_t031.

    ls_tb-aufnr = '55555' .
    GET TIME STAMP FIELD ls_tb-timestp.

    modify ymoon_t031 from @ls_tb.

  ENDMETHOD.
ENDCLASS.
